<?php
    require 'common/common.php';
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $uid = $_GET["id"];
        $sql = "delete from essay where essay_id = $uid";
        getResultBySQL($sql);
        if(getResultBySQL($sql)){
            echo "<script>alert('删除成功');window.location.href='admin.php'</script>";
        }else{
            echo "<script>alert('删除失败');window.location.href='admin.php'</script>";
        }
        ?>
    </body>
</html>